#pragma once

#include <QtWidgets/QMainWindow>
#include "ui_Exp1.h"
#include "BitmapFile.h"

class Exp1 : public QMainWindow
{
	Q_OBJECT

public:
	Exp1(QWidget *parent = Q_NULLPTR);

private:
	Ui::Exp1Class ui;
	void Connects();
	BYTE CalcAvgGrayPixel();
	BitmapFile* m_pBitmapFile;
	QString m_grayfile;
	int m_posOrigin;

private slots:
	void OnActionFileOpen();
	void OnActionFileGrey();
	void OnActionFileExit();
	void OnSliderMoved(int position);
};
